﻿using System;
using System.Collections.Generic;

using Nextensions.Text;

namespace Nextensions.Net.HTML
{
    public class Element
    {
        private string _name;
        private readonly string _html;

        internal Element()
        {
        }

        internal Element(string HTML)
        {
            _html = HTML;
            _name = MLUtil.GetAttributeValue(HTML, "Name");
        }

        public virtual void AddElement(Element Element)
        {
            throw new NotImplementedException();
        }

        protected virtual ElementTypes ElementType
        {
            get
            {
                return ElementTypes.Element;
            }
        }

        public string Name
        {
            get 
            {
                return _name;
            }
            internal set
            {
                _name = value;
            }
        }

        public string HTML
        {
            get
            {
                return _html;
            }
        }
    }
}
